package com.luoxue.execsql.rest.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luoxue.execsql.rest.entity.DynamicSql;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DynamicSqlMapper  extends BaseMapper<DynamicSql> {
    int deleteByPrimaryKey(Integer id);

    int insert(DynamicSql record);

    int insertSelective(DynamicSql record);

    DynamicSql selectByPrimaryKey(Integer id);

    List<DynamicSql> selectBySqlTag(String sqlTag); //根据sql标签查询

    int updateByPrimaryKeySelective(DynamicSql record);

    int updateByPrimaryKey(DynamicSql record);
}
